package com.wutao.panzh.admin.mapper;

import com.panzh.entity.HotelItemSpu;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface HotelItemSpuMapper extends Mapper<HotelItemSpu> {

    void insertHoteItemSpu(HotelItemSpu hotelItemSpu);

    Integer selectHotelItemSpuIdByhotelItemSpu(@Param("hotelItemSpuName") String hotelItemSpuName);

    List<HotelItemSpu> selectFroSearch(@Param("keyword") String keyword);

    HotelItemSpu selectHotelItemSpuByhotelItemSpu(@Param("hotelItemId") String hotelItemId);

    List<HotelItemSpu> selectAllByItemName(@Param("hotelItemSpuName") String hotelItemSpuName);

    void updateHoteItemSpu(HotelItemSpu hotelItemSpu);

    List<HotelItemSpu> selectHotelItemAll();
}